/* function info(name: string, age: number) {
  console.log("name:" + name, "age:" + age);
  return 3;
}

const res = info("abc", 12); */

/* type InfoType = (name: string, age: number) => number;
let info: InfoType = function (name: string, age: number) {
  console.log("name:" + name, "age:" + age);
  return 3;
};

const res = info("abc", 12); */

function info(name: string, age: number, ...rest: any[]) {
  console.log("name:" + name, "age:" + age, "rese:" + rest);
  return rest;
}

info("ww", 12, 12, "212");

export {};
